#ifndef  __SSE_PROCESS_H_
#define  __SSE_PROCESS_H_

#include <new>

#include "query_info.pb.h"
#include "merge_list.pb.h"
#include "common.h"
#include "shared_func.h"
#include "logger.h"
#include "index_merger.h"

class SSE_Process {
public:
  SSE_Process();
  ~SSE_Process(){}

  int init_index(char* path);
  int run(void* qbuf, int size);

private:
  int parse_query(void* qbuf, int size);
  int merge_get_result();

  SearchInfo*		m_si;
  SearchTermList*	m_sl;
  QueryInfo*  		m_qi;
  MergeList*		m_ml;

  IndexMerger*		m_im;
  IndexReader*		m_ir;
};









#endif  //__SSE_PROCESS_H_
